package com.aca.market.util;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FileUtil {

    public static List<String> getUrl(){
//        File file = new File("D:\\AllTest\\market\\src\\main\\resources\\templates\\bg");
        File file = new File("src\\main\\resources\\templates\\bg");
        String[] list = file.list();
        List<String> url = new ArrayList<>();
        for (String s : list) {
            if (!s.startsWith("comm")){
                url.add(s.substring(0,s.indexOf(".")));
            }
        }
        System.out.println("mapping over");
        return url;
    }

    public static void main(String[] args) {
        System.out.println(getUrl());
    }

}
